package com.study.hot.jetpack.paging.paging3

import androidx.lifecycle.ViewModel
import androidx.paging.Pager
import androidx.paging.PagingConfig

/**
 * <pre>
 *     author : slx
 *     time   : 2021/02/02
 *     desc   :
 * </pre>
 */
class PagingViewModel : ViewModel() {
    fun getData() = Pager(PagingConfig(pageSize = 1)) {
        DataSource()
    }.flow

}